import requestBike from '@/utils/requestBike'

const baseUrl = process.env.NODE_ENV === 'production' ? '' : '/cycleMap'

export function getByMac(row) {
  return requestBike({
    url:baseUrl+'/lcebcharger/getByMac?mac='+row.mac,
    method: 'get',
  });
}

export function plugSet(deviceNo, id, workType) {
  return requestBike({
    url:baseUrl+ '/lcSet/plugSet?deviceNo='+deviceNo+'&plugNo='+id+'&workType='+workType,
    method: 'get',
  });
}


export function setPriceApi(editdata) {
  const data = editdata
  return requestBike({
    url:baseUrl+'/lcSet/priceSet',
    method: 'put',
    data: data
  })
}

export function getPriceApi(row) {
  return requestBike({
    url:baseUrl+ '/lcSet/priceQuery?deviceNo='+row.mac,
    method: 'get',
  });
}









